import request from "@/utils/request";

export function orderAdd(data) {
  return request({
    url: "/mall/order/add",
    method: "post",
    data,
  });
}

export function pay(data) {
  return request({
    url: "/mall/pay",
    method: "post",
    data,
  });
}


export function orderList(data) {
  return request({
    url: "/mall/user/order/list",
    method: "post",
    data,
  });
}

export function orderInfo(data) {
  return request({
    url: "/mall/order/info",
    method: "post",
    data,
  });
}


export function orderDel(data) {
  return request({
    url: "/mall/order/del",
    method: "post",
    data,
  });
}


export function alipay(data) {
  return request({
    url: "/pay/alipay",
    method: "post",
    data,
  });
}


